package com.power.flowable.api;


import com.plf.common.domain.ResponseDTO;
import com.power.flowable.model.ProcessRecord;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 *  流程实例信息扩展表 Feign
 */

@FeignClient(value = "sfflow-svr", contextId = "sfflow-svr", path = "/sfflow-svr")
@RestController
public interface IAct_hi_procinst_extFeign {

    /**
     * 更新补正的截止日期
     * @param id
     * @param closingdate
     * @return
     */
    @PostMapping("/act_hi_procinst_ext/updateClosingdate")
    ResponseDTO updateClosingdate(@RequestParam  String id, @RequestParam String closingdate, @RequestBody ProcessRecord processRecord);

    /**
     * 更新受理单位
     * @param processinstanceid
     * @param applyid
     * @param sectionid
     * @param sectionname
     */
    @PostMapping("/act_hi_procinst_ext/updateAcceptsection")
    ResponseDTO updateAcceptsection(@RequestParam String userid, @RequestParam String taskid, @RequestParam String processinstanceid, @RequestParam String applyid, @RequestParam Integer sectionid, @RequestParam String sectionname, @RequestParam String remark);


}
